Changed String[] variables to ArrayList<String>