Slight improvement to logic + logging in confirm_trans