Added 'reduce' function.