Changed hasID -> hasMaterial, hasData -> hasMaterialData