Use transform directly rather than shelling out