Added support for the garbage collector.