Implemented the a function for search for a message.