Added root to transform callback