Added result encoding management