Renamed some variables to make things more clear.