Added Pad function for Segment Bytes