More logic in activity logger.