Intelligent Line Optimisation