Added some basic event handling schemes