Making this volatile is not enough to ensure sequentiality. Probably should be an atomic.