Replaced bool parameters in SkipUntil function with single bit-based parameter.