Moved to consolidated filesWritten call