Simplify error handling.