Add initial perturbation theory analysis code.