Added the ability to read the settings from attributes.