Modified the template to make a member function a static function