Converted to static function.