Updated static function to grappelli versions.