WIP store intervals on document and clear when a new form is initialised (for trees)