Add generate one length pattern.