Removed some code from the menu loop.