Changed variables into arrays instead, reduces amount of variable creation, and lines in script