Work on save map to file