Modified to use tickets.