Added Routine to handle input in Hex Format