The list of patterns has been modified according to their types.