Add 1D error calculations using FindRoot