Added a log statement and dynamic TAG variable that extracts the activity title.