Why not pass the `encoder` instead?