Adjust thread settings