Update to fix breaking change from M4

Corrected 'reduce' function to be 'fold' as it should be