Implemented the basic message system.