1. Implement my own distance function.
2. Set the distance function to my implementation.
1. Implement my own closest point function.
2. Add #if() for function connection for convenience.