Fiddling with optimisation.
Rewrites of the sequence structure and priors.