Edited get_dt functions.