Added support for patternlengths > 16

Will be part of the next binary update at a later date