Fixed singleton class instantiation and implemented SocketCommand hash.