Renamed some variables. Still have encoding issues :'(