Added method for setting static function variables