Enter/leave correctly.