Renamed variables for clarity