Added Category
Moved CreateThread