Rewritten data logger.