It works best for igneous and metamorphic rocks.