Added a switch on the inputs based off of attribute type.
Changed the way the select drop down works.