Changed the return value on generate keys to be the Net::HTTP response object