Filter is now based on the agencyid passed as parameter