Increase MAX_GENTITIES from 1024 to 4096