More playing with threads, added a threadcount variable