Made Events into tasks, so sleep can be included inside event handlers