Made the subsiteCheck() a static function since it is accessed this way.