Replaced manual byte formatting with format utils.