Moved the reading of Creds.pkl into its own function