Format functions.