Added Verification function and some other stuff