Add user configurable mask generation