Renamed some variables for readability