Update saving and rendering code.