Extrated the logic to find our gems