Moving the encoder out of the views