Should be semi-stable. Added debugging menu.