Allow flush method to be called publicly. This is a better, simpler solution, that allows for better control over flushing.