Changed to print to file instead + printSource()