Fetching generated keys