Added basic events and handlers.