Added maximum thread depth.

Commit wasting sociopath.