Added rules to produce motifs