This should produce the same results but I realised I'd gotten the number of patches wrong.