Added ADC code