Refinement of previous commit to visualizeSGP