Added socket manager and test script.