Improved serial connection. Still unfinished.