Integrated writing to disk