Make apply timeseries more flexible

Change-Id: Ie6f209c35b6ab8b2a696493d921376da060cc740
Merge "Make apply timeseries more flexible"