Changed order of some stuff to get motors running