How does the ticket system work?