Generating a retain cycle