More loop optimisation. All tests passed.