Cleaned up the Sockets class.