Making some changes in thread