Use Map.put instead of Map.update