Added constructors for multi classloader version.