Valid_Read class and unique count improvements