Made a more complicated function to integrate in the trial.