Still doing refactor for codeGen. Rethinking the appendInt logic.