Saving the map every time a node is added