Final version of code from testing 3-24. Sensitivity has been adjusted