Refactored to class method.