Add a simple memory pool and logging.