Gray code added