Writing the details file all at once for some speed increase.