Updated collectionMap procedure.