Added new HOD function -- works for Esmeralda