Implemented stack roots for garbage collector.