Use a hash of hash to match the function for the api