Adding keep_list functionality. If you specify the ids of operations to keep, you can find out the set of total operations needed to keep those operations.