Convert to class method