Got rid of the plotThread