Change to hashmaps from arrays you make it easier to follow by using
string keys.