OMG!
The integration function is finally done!
But still need debug for some times.