Switched to a Proc for transforms