New parameter added to the load function of Config class.
Element hooks fixed.