Added a doWhen method that does a command after a number of seconds is passed