Added a working WaitFor system :D It also can execute a task when an event occurs.