Refactored and Changed to TCP/DMPClient Implementation