Ported rmiyc code to pagefetch.