Add in echo for outputting to a file