Modified within package references, and added tentative implementation for loadDependencies