Added correct error computations