Restructuring hw_info.r.