Several adjustments
Getting threads ids back