Add back plotting code.