Gem setup and functionality