Initial commit (block generation logic)