Generate encoders as well