Bug fixes. Use CompactSequence.