Added functions for calculating robustness stats