Changing args
Updating task routine to be more flexible wrt window start and end times.
Added wait node back in.
Fixing up bugs in routine