Tweaked encoding method