Added wait to move script