Added a switch on the inputs based off of attribute type.