Modification of main activity.