Hex encoder work