Adding print out to file