Added some debugging code to find out why values aren't added to the map