Now it works with time series too.
Improving readability.