Changed DAC code back