Add threads by classes. Need a depth support and testing/fixes.