Tweaked the output method for file 'out'