Added a #define which allows events to be easily created.