Added activity methods to log activities