Methods for Optimisation and Risk Level Calculation in TOPP