Improvements on set manipulation and starting dealing with sequences.