Curry instead of the traditional closure
Add JPM's Collate test