Early version with debug and tcp monitoring in place