Limit optimisation to maximum number of instances, 500 is sufficient for 10x10 etc.