Fixed rank to compile.   Algorithm needs to be fixed.
Fixed bug with being unable to send a msg to the server.