Added support for undefined length sequences