Added collapse, dropUntil, takeUntil functions.