i think i have the time management functions half-way figured out now.