Why not use the search parameter with the object's list method? It would be cleaner