Implemented 'flush'.