Initializes app.