make time periods configurable