Needed to close handle and changed select to find to recieve a hash instead of hash within array
Hid all the API secrets...a little belated. Credentials have been changed