Remove entire outfile business. We're big boys & girls, we can pipe things