Added backend filtering for agency types
Merged