Thread issues thread added to fix issues