Changed logic for Q10 flag