Directly export the format function.