Updated d-t-m with a bugfix