Optimise build.