Properly process result flags