Cleaner error handling.