Added functionallity to complete a ticket.