Added a simple logger.