cRViewer starting code