Processing is changed in thread