David Harvey's KS2 and KS4 code.