New version of old MitoThinning algorithm. It seems to be working fine.