Change locationType to hash