Updated plotting and logging.