Add findFill function to Agent.