Added SetMaxDependenciesNumber method