Implementation of event handling continued.