Updated with volumetric equations and threshold