Implement excluding from GC

Change-Id: I684bcc0807a2eaf0ee57856f3a6ed409dad3dd38