Add write pieces to files