Changed script to access DT smart tags instead of tags
Fixed custom variables.