Added getTicket and (incomplete) updateTicket functions.