Renamed variables to be a bit less ambiguous.