Added debug param to addTicket()