Changed dependencyMap to map