Overhauled to support local serial, w/o server. Bugs likely.