Use attributes to initialize the map