Cleaned up trans_fail functions, per eddyb request.