Fixed 'wait' commands with 'sleep'