Add mechanism to do analytical/custom integral