Gem implementation