Added the phantom state thread variable