Add format and pad functions.