Working second stage of rendering.