Formatting and lo-function