Added function to set default units with a toggle that over rides this setting.