Added a function to OutputDisplay to format hex code appropriately.