Minor fix: State change notifications were not appearing for assignment statements in the thread definition