Rename syncInterval to flushInterval