Added example for flush buffer