In 1830 he moved to Edinburgh where he became involved in the proceedings of the Highland Society, chose to become a member of the Royal Society and where he announced the discovery of a new mineral, a sulphide of cadmium, which was found in excavating the Bishopton tunnel near Port Glasgow and which is now known as Greenockite.