Changed default optimisation to global.