Solved static function problem