Updated to use timezones, and managing intervals.