Added TCP connection - not yet working.
Better logging and split source
More splitting of source, better logging.