A better solution using the already present flags must be found. This reverts commit 6d3ee8bb39.
6d3ee8bb39