Added function for addTicket