Use less of Task::event.

#293