Prepare map for saving