The connection is almost there! What remains is writing the file.