verKey is a bad naming scheme, on the other hand it isn't defined before, maybe you wanted to use 'version' here.