Add option to enable printing of WQ stats for foreman to a log file.