Implemented message passing.