In initialize, converted for loops to map
In inspect, converted for loops to map