Based on the path clustering defined before, the main egress path is identified and used to construct a descriptor for Metadynamics to accelerate the dynamics and calculate the residence time. Metadynamics is an enhanced sampling technique that accelerates molecular dynamics simulations by using a bias potential in the form of a sum of Gaussian potentials that grows over the simulation time. In its simplest formulation the bias potential acts on a low number of predefined degrees of freedom, also called collective variables (CVs). These CVs should encapsulate relevant slow degrees of freedom for a given rare event of interest.