Added getter and setter for dt.
Code clean up.