Add verify function.