Added basic handlers and heartbeat event.