Added a static function version