Started encoder builder code