Added separated methods for adding logs and incrementing activity statistics.