Changes made to allow for communication over serial