Added configurable gain/input voltage range