Update initial app function.