Saving before making the switch from passing Page*'s to PageId's as parameters because for RawFile, the page you get back has no metadata.