Update to support serial server and running the socket server on a
seperate thread.