Refactored category method