Changes enter() function for performance.