Changed datasets into a list and a for loop to populate it.