Printing newbroker to a file