Fix the implementation of Communicator.
Get rid of debugging functions.