Added new method for checking and saving maps