Getting rid of repeats

The dta option part was mostly exactly the same as the non-dta option part, so I trimmed the code.