Added some anti-thread defence.
2.0.1