Actually, this should be a static function.