Added mask() method to Sequence.