Add support to fold/reduce events