This is a very very barebones version of this, but it’s not too hard to construct environment tables dynamically