Finally! Satisfactory encoding