Initial code for handling events.