Output file can now be specified