Added ticket id reset code