Execute commands at regular intervals.
Added the ability to choose the second to trigger the scheduler #2