Changed the labels from arrays to hashmaps