Added page table detach function