Changed array to variables in dispense