Changed sim/plot scripts