Refactored code to grab Key Signature