Add basic template and events.