Turn getHash() into static function.