Delay as task

Making the delay as a task and wait for 10 seconds.