Add export of dt. Fix clock queries in debug mode.