Adding new Varmap SOP to build variable mappings for attributes.