Set the class method so subclassing works.