Implementation of message module.