Move ticket creation to a separate thread.