Removed delay attribute from Event class. Event.do_event distinguishes between function callbacks and method callbacks.