Updates made for more accurate error estimation