Optimize invalidation.
Refactor timline handling.