Basic code for events and services written.