Change rtq drainage check to use dumpq and put it in a function.