Added base_filename parameter to ADC in order to enable testing.