Added more functions to accommodate updating the result.