A cleaner way to get the environment variable into the foundation type. A lot of things happen behind the scenes, but it is  quite impressive. I need to understand the scaffolding better among the many other things.