Added the ability to specify the time to run.