Migrated code to ChunkGenerator, added config