Renamed various variables to improve simplicity