Permit disabling of the automatic flush

Implemented maxDelay = 0 to disable autoflush.