Write to file - This will help with tests