Refactored into hasher methods