Use getCode and getID