Renamed some variables because I felt like it