Avoid race conditions when launching tasks

- Execute tasks in the proper order
- Remove sleep command
So glad this is gone! :+1: