Gem and structure setup