Took care of case when label had no voxels, and added functions to deal with stability test