Change result to ResultData

And solve the memory limitation problem