Added static function handling to partial.