Setup dmacro