Why this parameter? This overcomplicates the function, and I don't see internal usage of this feature (integral=False)?