Improve the sequences rule

...it checks the reversed sequences too.