Renamed handleOutput to render.