Output is now written to file