Made the thread count automatic