Indentation fixed in Plan
Changed the optimisation criteria for nested operators