Adding in agent verification logic