Currently support for nested Thread is not verified. This needs to be tested and verified and fix any issues.