Changed for pim and mam search.