Added fdoutput and piping, still getting proper outputs for both