Reformatting document.