Script appears to be fully functional. Further refinement of serial IO is desired.