Changed ADC to be a little bit more generic and allow multiple inputs at once.