Moved all auth key data and methods into a class.
Forgot to change for loop when moving func into class.