Updated ticket count for queues in the providerMain function