Better yet, what about passing the encoder directly?