Plotting in thread
LS bug fixed