Added an option to keep flushing the buffer using a timeout