Verification function.