Made the runCheck a public function