Added the ability to set a dictionary