Explicit control of pattern mode;l fixes issue #114