Adding a hook to transform data individually.