Add (currently unused) API for encoder