Use function to dynamically determine bytes format.