Added some event handling and wired up some skeleton code.