Added code to build page tables.