Added some distance compute code