Add rcodes to seperate submod