Changes for standards library apis to read code field instead of label.