Implemented a flushing system