Added volatile to patch up DCL bug