Update event engine to support any type of context object.