Forked from Robert Nelson's dtc repository