Fixed a bug where if the territory option is disabled, results were still being recorded with territory. Now does a check to make sure the territory option is enabled.