Add dumpvariables macro