Ticket rewriter