Made input many hex procedure and slightly modified the input one hex.

Not working quite as expected, but will debug soon.