Add ability to create a compartment with a provided global.