Changed the controller.sh script