Modified controller.sh to include some Quantum stuff, not finished