Add output to file for examples