Configuration of Encoder