Had to initialize the average results variable each time through the
loop otherwise values were carrying over.