Add printing to file