Move app updates into its own function.