Added variable range warning before writing.