Debug code added to run on ARM processor.
Code simplification within the tcp server handler