Changed method names.
Getting very close now...
It doesn't work, but it's a starting point.
Fixed a bug.
2D case seems to work and has an example.