Implement getGeneratedKeys functionality