Added logging to Activities