Added page restoring to and optimized pcall