Add support to run for n seconds
Add support to run for n seconds