Preparing for optimisation.