DAC is now working and should be correct. Also added DAC opt extraction.