Update the restore() method to use CORE::select too