Make decode much more usable
Parse hex for decode segment