Updated constants in encoder