Update agent's search method to be able to work as a secondary agent too.