Renamed variables to be more intuitive.