@cdeil Do this line and `eval_integrate`  belong in this PR?
I would rather have them in a separate PR which implements integrate.