Formatting and error correcting