Beginning of the master app.