Fixed communication errors with client program.