Improving input streams