Why does this stuff need to be done AFTER the render is complete?