Workaround to get the best attempt based on the flags