Added a check for revisions to prevent extra data