Added Log statements to Mainactivity.