Simplified context and event handling