Added gray codes