Added ticket generation and verification recording