Working leave enter events (but not debugged).