Add trace and update apply-transform to throw errors