More adaptations made, no success. Going to implement a local version.