Using copy of Map when storing state