Initial attempt at reworking time-lapse code.