Add takeWhile and skipWhile