Optimized app start logic.