Improved menu initialization.