Created work frame c and added a few convenience functions for event-type munging