Formatting the file correctly