Added an "initializeApplication" function to allow for delayed app start if other tasks should be performed first.