Package waitout makes it easy to wait for some output.