Added CodeGen Methods.