Renamed variable for better legibility and added comments where needed