Adding support for cdr, to be used to test GC