Ttest and modify for running ttest.