Updated locationType to hash