Updated the flush interval to milliseconds.