More refactoring:  HSH_* functions take struct worker as first argument