Added code for ADC