Added some signature verification logic.