Write chunks
Big refactoring coming.
Generator refactoring. Dump chunks.