Added a log message to main activity