Timeindex validation added for extra safety.