Nicer error handling.