Wrapped function triggers events with itself as a context