Cleaned up the naive serial interface.