Add error computation methods