Added -n option to avoid interactive plot