Overhauled the menu system to use 2 generic set/toggle functions instead of individual ones for each setting.