Added thread variable.