Trying to get the savemap feature to work