Improved main menu.
Code optimization.