Create and use bitmasks of arbitrary depth without thinking.