Proper start of MainActivity.