Loop input for streaming