R flag is working