Corrected logic for seeing what needs to be fetched.