Removing all useless pages