Refactored trans status handling.