This should be a local variable to CaptureTimeline for flexibility.