Scalable (API-wise) flags

As we discussed in issue #46.
(last commit)