Added context setting for events.
Merge pull request #65 from Fishrock123/events-context

Added context setting for events.