Added a bit GC friendly code.