Added support for pull-up/pull-down resistor