Invert flags order.
Remove double status output.