Changed wtf script to use CUSTOM_VARS variable