Updated comms module bits to use bufferedIO