Added msearch and domainsearch functions.