Switch to using stdin instead of args.