Script for dtm