Added logging for where the file is being written