Returning errors instead of handling them