Damn, I thought about using inject but for some reason remembered it was not available for hashes! Will change this.