Code cleanup.
Speed improvement: Background rendering.