Implemented message add functionality