Custom reducing functions for DPH