Adding garbage collection layer