Adding basic garbage collection management.