Rewrote rendering around on prog-events.