Volatile variable is read-only in runtime.