Begin to add global optimum recording function!