Changed threshold in plotdata. Added option of immediate reset (which gives a good amount of juice)