Remove the sleeping and move the trigger out of the run