Perhaps have the PrintStream passed in?