Flush method implemented