Adding flushing debug