Added wakeup for tasks