Added memory logger.