Avoid race conditions when launching tasks

- Execute tasks in the proper order
- Remove sleep command
Seems like using '.' as a delimiter is dangerous if nodeName could contain '.'s, especially if something like sendMessageTo is going to try to parse it apart.