Rename `stream` variables for extra clarity and to prevent them shadowing the stream module import.