Implemented the message-composition functions.