Simplified error calculations.
Simplified error calculations 2