Add error check within copyfiletable
Implement clock replacement policy for virtual memory