Added Vincents ADC code