Fixed Pad function.