Improved the ModelViewer sample.