Autonester - Automatic optimisation of layplans