Add API calls to get units and countby settings.