Added missing code for activity logs