Renamed some variables to make it clear