Removed duplicate hex conversion routine (one exists in miscellaneous)