Fixing code formatting for Territory