Initializing an Application

Initialize the application when it starts the first time and subsequently.