Updated recipe to work with apply.