Added two new methods to agents: search, and searchByAttribute