I’m not sure what “on the fly” means. I’m fully retired now and have little to do other than record my thoughts as they come to me, write my memoirs, and watch soap operas with my wife.
By the way, can you name a country anywhere in world history with a diverse population of different races, languages, and religion that has long survived?
(The jury is still out on Great Britain.)
What is your definition of: "has long survived" and "a country"? Most ALL civilizations have collapsed on average after a few hundred years, including ALL of those with one religion and one ethnicity. Therefore, I think you should look further than your theory that a country's diverse population and religions are the root cause of all country/civilization collapse.