Optimising operation parameters