Optimized chunk-generator
Changed leaves generation