Added uniq index to grades