Refined the nested for loop a bit to be a slightly more dynamic and pull from the JSON data.