Formatting and completion