Add updateApplication function.