Scanning and validating tickets