Update the verification script to work properly for groups. Also output the verification result to local files so that the verification script is parallel-friendly.