One more attempt at error handling.