Made the variable volatile.