Added DFT implementaiton but something ain't right.