Record file creation and writing added.