Refactor, row renamed to document