Most of set_stream_path, and better arg parsing.