Changed agency to agency_cd to match rdb.