Add simple event handling