Fixed the bugs produced by previous commit. New class called VerExChain made.