Answer by Glenn Slaven for how to map key of a dictionary to a variable - http://stackoverflow.com/questio...