Namespaced sockets and refactored.