Moved update to updateGems function