Auto flushing