Removing unneeded pages