Added some code in the initialization method of VMKernel