Allow a callback to be applied to each item