Code written for LaunchActivity.