Added absolute residual tolerance option