Added optimisation history class, for keeping track of optimisation progress.