Starts the encoder