Change attribute to be a struct.