Refactor constant names
Roots of a generator - write bytes to a file