Added a convenience function: ConsumeUntilQuit