Replacing with reformatted file