Checking and tidying functions that run experiments.