Sussed the error handling