Updated to read in attribute table