Added validation of a secuence