Add task to events