Renamed some of the variables to make it nicer to look at.