Optimising the whole system