Add pagination. Still exhibits an issue where files don't save under certain circumstances.