Change integrate_from_crossing so that it no longer calculates the terminals within it but instead takes them as an argument.