Had thread code wrong.