Does plotting now.
Also tests optimization.