B12

Refactoring, because some better optimizations can be done if it is known if only the flags result of an operation is needed.