Fixed error message.
Fixed incorrect increment.
Fixed wrong maxSamples calculation.
Refactoring.
Cleanup.
Removed useless throws statement.
Removed potentially noisy log. Let user decide.
Added TODO.
Cleanup.
Fixed wrong logic: persist first then accumulate.
Added more comments.
Let TimeSeries implement Identifiable.