Added support for analog input