Stable version of menu.cpp and menu.h.