Added error case.