Moved all the ADC initializations/routines to here