Modified the startRender and stopRender functions to halt animation request.