Sketches some new API for the encoder