Also updating the other Constructor to synchronized map.