Refactoring some of the serial port comms to out of the main controller.