Add threading

Not sure if helpfull, but added threading to make sure draw waits for inspect