EXMOTIF Algorithm.