Some more work on thread manager, not working