Add search message function and client interface.