Handle verify function more precisely.