Allow writing output into file