Initial work of the module for writing the file.