Added queue monitor and cleaned up debugging