Added getKey to end of analyzeSGP