Added functions for ttest