Todo the error case to be fixed later.