Should handle error case.