Improving simulation threaing