Added volatile to storage variable.