Added 8to6 bit conversion