Basic event handling facilities.