Added saving map to file.