Use an event to execute a context