Use attr_reader for warnings.