Added save and get for time intervals