Use the Generator API internally