Wrote some slice rendering code.