Bugs fixed for CONTEXT_LENGTH not updating
Improvements to the timeline segments.