Started work on ADC but not quite working yet