Added the function to get the maps from a file.