Add overloaded version of integral function