Updated to use seidel module, as orourke C code failed on further testing.