Finished basic event handling