Revert "Removed oncode variable"

This reverts commit 55fb6d6575dafeb80be6833020c0da672a1747af.